//
//  QMsgDetailVC.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/7/20.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QMsgDetailVC.h"

@interface QMsgDetailVC ()

@end

@implementation QMsgDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = self.listModel.title;
    [self createUi];
    
}

- (void)createUi{
    UILabel *timeLab = [QViewUtility createLabelWithFrame:CGRectMake(15, 74, kScreenWidth - 30, 30) font:17 textAlignment:NSTextAlignmentCenter textColor:[QColorUtility defaultDeepGrayColor] text:_listModel.addTime];
    
    [self.view addSubview:timeLab];
    
    UILabel *line = [QViewUtility createLabelWithFrame:CGRectMake(15, 104, kScreenWidth - 30, 1) font:10 textAlignment:1 textColor:nil text:nil];
    line.backgroundColor = [QColorUtility defaultBlueColor];
    [self.view addSubview:line];
    
    UILabel * textLab = [UILabel new];
    [self.view addSubview:textLab];
    [textLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@15);
        make.right.equalTo(@15);
        make.top.equalTo(@115);
    }];
    textLab.font = [UIFont systemFontOfSize:15];
    textLab.numberOfLines = 0;
    textLab.text = _listModel.briefData;
    textLab.textColor = [QColorUtility defaultDeepGrayColor];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
